<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>垂直卡片滑动</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <div class="card" style="--d:-1;">
            <div class="content">
                <div class="img">
                    <img src="1.jpg" alt="">
                    <div class="detail">
                    <span>唯美</span>
                    <p>唯美古风美女图片</p>
                    </div>
                </div>
            </div>
            <a href="#">关注</a>
        </div>
        <div class="card" style="--d:1;">
            <div class="content">
                <div class="img">
                    <img src="2.jpg" alt="">
                    <div class="detail">
                    <span>唯美</span>
                    <p>唯美古风美女图片</p>
                    </div>
                </div>
            </div>
            <a href="#">关注</a>
        </div>
        <div class="card" style="--d:2;">
            <div class="content">
                <div class="img">
                    <img src="3.jpg" alt="">
                    <div class="detail">
                    <span>唯美</span>
                    <p>唯美古风美女图片</p>
                    </div>
                </div>
            </div>
            <a href="#">关注</a>
        </div>
        <div class="card" style="--d:3;">
            <div class="content">
                <div class="img">
                    <img src="4.jpg" alt="">
                    <div class="detail">
                    <span>唯美</span>
                    <p>唯美古风美女图片</p>
                    </div>
                </div>
            </div>
            <a href="#">关注</a>
        </div>
    </div>
</body>
</html>